package Level01_one;

public class Computer {
    private String brand;
    private double price;

    void coding() {
        System.out.println("使用"+getPrice()+"元的"+getBrand()+"电脑编程");
    }

    public Computer(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}

